function exportXmlByType(cache) {
    cache.type = cache.type || figure(cache.data);
    let code = "";

    switch (cache.type.toLowerCase()) {
        case "column":
            code = androidLinearCode(cache);
            break;
        case "row":
            code = androidLinearCode(cache);
            break;
        case "stack":
            code = constrainCode(cache);
            break;
        case "container":
            code = constrainCode(cache);
            break;
        case "text":
            code = androidTextCode(cache);
            break;
        case "image":
            code = androidImageCode(cache);
            break;
        case "sizedbox":
            code = constrainCode(cache);
            break;
        default:
            break;
    }
    return code;
}